﻿@model XPressify.Models.RelationshipLoveDeleteModel
@using XPressify.Data.Helpers

@{
    ViewBag.Title = "Relationship delete";
}



@using (Html.BeginForm()) {
    <fieldset>
    <legend style="font-size:x-large;color:#222">Relationship</legend>
    <table>
        <tr>
            @if (Model.RelationshipUser.Id != Model.UserId)
            {
                <th width="50px">Name</th>
                <th></th>
            }
            
            <th>Relationship Status</th>
        </tr>
        @Html.HiddenFor(model => model.UserId)
        <tr>
            @if (Model.RelationshipUser.Id != Model.UserId)
            {
                <td> 
                    <a href='@Url.Action("ProfileView", "Profile", new { id = Model.RelationshipUser.Id })' class="nobtn">
                        <img src= "@Model.RelationshipUser.ProfilePicturePath" alt="Profile picture" title="Profile picture" style="width: 50px;height: 50px;" />
                    </a>
                     
                </td>
                <td>
                    @Html.ActionLink(Model.RelationshipUser.FullName, "ProfileView", "Profile", new { id = Model.RelationshipUser.Id }, new { @class = "nobtn" })
                </td>
            }
            <td>
                @Model.RelationshipStatus
                @if (Model.Relationship.Status != RelationshipStatus.Confirmed)
                {
                    @:(pending) 
                }
            </td>
        </tr>
    </table>
    
</fieldset>
    
<div style="text-align:right">
    <input type="submit" value="Delete" />
</div> 
    
}